import Vue from 'vue'
import App from './App.vue'

import router from '@/router'
// 导入请求工具
import http from '@/utils/http'

// 导入频道组件
import MyChannel from '@/components/my-channel'

// 完整引入完毕
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)
// 挂载请求工具
Vue.prototype.$http = http

Vue.config.productionTip = false

// 注册频道组件
Vue.component(MyChannel.name, MyChannel)

new Vue({
  render: h => h(App),
  // 挂载路由实例
  router
}).$mount('#app')
